package cn.stylefeng.guns.modular.comm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 新闻通知
 * </p>
 *
 * @author
 * @since 2019-11-18
 */
@TableName("comm_news")
public class News implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 内容
     */
    @TableField("content")
    private String content;
    @TableField("content_text")
    private String contentText;

    @TableField("display_flag")
    private String displayFlag;
    /**
     * 封面缩微图
     */
    @TableField("file_id")
    private String fileId;
    @TableField("img_path")
    private String imgPath;
    @TableField("type")
    private String type;

    @TableField("insert_time")
    private Date insertTime;
    @TableField("insert_user")
    private Long insertUser;
    @TableField("update_time")
    private Date updateTime;
    @TableField("update_user")
    private Long updateUser;
    @TableField("del_flag")
    private Boolean delFlag;

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public Long getInsertUser() {
        return insertUser;
    }

    public void setInsertUser(Long insertUser) {
        this.insertUser = insertUser;
    }

    public Boolean getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Boolean delFlag) {
        this.delFlag = delFlag;
    }

    public String getDisplayFlag() {
        return displayFlag;
    }

    public void setDisplayFlag(String displayFlag) {
        this.displayFlag = displayFlag;
    }

    public String getContentText() {
        return contentText;
    }

    public void setContentText(String contentText) {
        this.contentText = contentText;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", title=" + title +
                ", content=" + content +
                ", contentText=" + contentText +
                ", displayFlag=" + displayFlag +
                ", fileId=" + fileId +
                ", type=" + type +
                ", imgPath=" + imgPath +
                ", insertTime=" + insertTime +
                ", insertUser=" + insertUser +
                ", updateTime=" + updateTime +
                ", updateUser=" + updateUser +
                ", delFlag=" + delFlag +
                "}";
    }
}
